import http from './http'
// 搜索
const search = (data) => {
    return http.post(
        '/api/search/search', 
        { keyword: data }, 
        { headers: { act: 'setCoursecollect' } }
    )
}
// 获取搜索的历史记录
const getSearchList = () => {
    return http.get(
        '/api/search/getList',
        { headers: { act: 'setCoursecollect' } }
    )
}
// 删除用户搜索信息
const delSearchLog = () => {
    return http.get(
        '/api/search/delSearchLog',
        { headers: { act: 'setCoursecollect' } }

    )
}
export { 
    search,
    getSearchList,
    delSearchLog 
}